package com.demo.springboot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class App {



    public static void main(String[] args) {


        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
        //System.out.println("local.ip: " + context.getEnvironment().getProperty("local.ip"));
        //context.getBean(UserConfig.class).show();
        context.getBean(DemoConfig.class).show();
        context.close();

    }
}
